/**
 * 页面初始化
 */
$(document).ready(function () {
    /**
     * 获取店铺列表
     */
    getShop($('#shop'));
    /**
     * 获取今天的日期并填充
     */
    $("#dateStr").val(getToday());
});


$("#writeYangImport").click(function () {

    $.get({
        url: "/yangBG/writeYangImport",
        data: {
            "dateStr": $("#dateStr").val(),
            "shop": $("#shop").val(),
            "password": $("#password").val(),
        },
        success: function (result) {
            layerShow(result);
        }
    });
});

$("#writePrescription").click(function () {

    $.get({
        url: "/yangBG/writePrescription",
        data: {
            "dateStr": $("#dateStr").val(),
            "shop": $("#shop").val(),
        },
        success: function (result) {
            layerShow(result);
        }
    });
});


$("#writeShopSend").click(function () {
    $.get({
        url: "/yangBG/writeShopSend",
        data: {
            "dateStr": $("#dateStr").val(),
            "shop": $("#shop").val()
        },
        success: function (result) {
            layerShow(result);
        }
    });
});

$("#writeAll").click(function () {
    $.get({
        url: "/yangBG/writeAll",
        data: {
            "dateStr": $("#dateStr").val(),
            "shop": $("#shop").val(),
            "password": $("#password").val(),
        },
        success: function (result) {
            layerShow(result);
        }
    });
});


